package gfxTest;

import java.awt.*;
//import javax.swing.


public class Ball {

	public double x, y;
	public int rad=30;
	public Color color;

	
	public Ball(int x, int y) {
		this.x=x;
		this.y=y;
	}
	
	public void move(int x, int y) {
		this.x=x;
		this.y=y;	
	}

	public void draw(Graphics2D gr){	
		gr.drawOval((int)x-(rad),(int)y-(rad),rad*2,rad*2);
	}
	
}
